package mpcs.utils
{
	import com.google.maps.LatLng;
	
	import mpcs.mylibs.core.Server;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 客户端Socket服务器
	 */
	public class ServerManager {
		
		public function ServerManager() {
		}
		
		private static var server:Server;
		
		/**被定位用户实时位置数组**/
		public static var Locations:ArrayCollection = null;
				
		/**
		 *  获取客户端Server的实例，单例模式
		 */		
		public static function getServerInstance():Server {
			if(server != null){
				return server;
			}else{
				server = new Server();
				Locations = server.locations;
				return server;
			}
		}
		
		
		
	}
}